/*
 * zoekstage.fx
 *
 * Created on 20-nov-2009, 11:07:39
 */

package zoek;

import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.text.Text;
import javafx.scene.text.Font;
import javafx.scene.CustomNode;
import javafx.scene.Group;
import javafx.scene.Node;
import javafx.scene.control.Button;
import javafx.ext.swing.SwingLabel;

/**
 * @author evert
 */

Stage {
    title: "Application title"
    scene: Scene {
        width: 700
        height: 700
        content: [
            Text {
                font : Font {
                    size : 16
                }
                x: 10
                y: 30
                content: "Application content"
            },
            MyCustomNode{}

        ]
    }
}
class MyCustomNode extends CustomNode {
public var number:Integer=8;
	public override function create(): Node {
		return Group {
			content: [
                        for(i in [1..number]){
                            Group {
			content: [
                            Button {
                            text: "delete"
                            layoutX:300
                            layoutY:i*50
                            action: function() {
                        }
                        }
                            
                        Text {
	font : Font {
		size: 24
	}
	x: 200, y: i*50
	content: "HelloWorld"
}
Button {
                            text: "edit"
                            layoutX:50
                            layoutY:i*50
                            action: function() {
                        }
                        }
]}

                        }


]
		};
	}
}
